@import "@/theme.less";
.coupon-detail{
  position: fixed;
  top:0;
  left:0;
  z-index: 100;
  font-size: @font-min;
  background: rgba(0,0,0,0.7);
  width: 375px;
  height: 100%;
  #coupon-detail{
    position: absolute;
    left:10px;
    top:50%;
    transform: translateY(-50%);
    width: 355px;
    height: 90%;
    background: #fff;
    border-radius: 10px 10px 0 0;
    transition: .1s;
    &.close{
      transform: translateY(-50%) scale(0);
    }
    &.open{
      transform: translateY(-50%) scale(1);
    }
    h2{
      width: 100%;
      height: 45px;
      line-height: 45px;
      color: @page-bg;
      text-align: center;
      background: @main-color1;
      border-radius: 10px 10px 0 0;
      font-size:@font-max;
      .close{
        position: absolute;
        right: 0;
        top:0;
        width: 40px;
      }
    }
    #content{
      height: 100%;
      padding: 0 10px 45px 10px;
      box-sizing: border-box;
      div.cover{
        width: 100px;
        height: 100px;
        margin:10px 10px 10px 0;
        float: left;
        img{
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
      h4{
        font-size: @font-max;
        margin: 10px 0 10px 0;
        color: @font-color1;
        float: left;
        width: 220px;
        line-height: 110%;
        &.none-cover{
          width: 100%;
        }
      }
      p{
        &.type{
          margin-top: 10px;
          color: @font-color1;
          clear: both;
          span.value{
            color: @assist-color1;
            font-size: @font-max;
          }
        }
        &.address{
          color: @font-color1;
          width: 100%;
          line-height: 120%;
          float: left;
          margin: 10px 0 10px 0;
        }
      }
      div.qrcode{
        width: 100%;
        margin: 0 0 15px 0;
        h6{
          text-align: center;
          line-height: 40px;
          height: 40px;
          font-size: @font-max;
        }
        img{
          width: 200px;
          height: 200px;
          margin: 0 auto;
          display: block;
        }
      }
      div.explain{
        margin-top: 10px;
        h5{
          margin-bottom: 10px;
        }
        .content{
          line-height: 130%;
        }
      }
    }
  }
}
